using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Data_Object
{
    
    public static class DataAccess
    {
        private static readonly string connectionStringName = ConfigurationManager.AppSettings.Get("DataProvider");
        private static readonly IDaoFactory factory = DaoFactories.GetFactory(connectionStringName);
        public static ITaiKhoanDao TaiKhoanDao
        {
            get { return factory.TaiKhoanDao; }
        }

        public static IDichVuDao DichVuDao
        {
            get { return factory.DichVuDao; }

        }

        public static IDiaDiemDao DiaDiemDao
        {
            get { return factory.DiaDiemDao; }

        }
    }
}
